package com.itsq.service.resources;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itsq.pojo.dto.PageCompanyDto;
import com.itsq.pojo.dto.PageDepartmentDto;
import com.itsq.pojo.entity.Company;
import com.itsq.pojo.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 史先帅
 * @since 2021-01-30
 */
public interface DepartmentService extends IService<Department> {

    public Page<Department> selDepartmentPageFront(PageDepartmentDto pageDepartmentDto);

    public Page<Department> selDepartmentPageAfter(PageDepartmentDto pageDepartmentDto);

    public Integer insert(Department department);

    public Integer update(Department department);

    public List<Department> selDepartmentList();

    public Department selDepartmentId(Integer id);

    public List<Department> selDepartment(Integer companyId);

    public Integer delete(Integer id);
}
